﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="TabAddLineHealth.ascx.cs" Inherits="BigLotterySyndicate.Secured.Draws.Controls.TabAddLineHealth" %>
<style type="text/css">
tr.line-numbers td input
{
    width:40px;
    font-size:2em;
    text-align:center;
    }
</style>
<table>
<tr>
<td colspan="6"><%= PrintPreviousNumber() %></td>
</tr>
<tr class="line-numbers">
    <th>1</th>
    <th>2</th>
    <th>3</th>
    <th>4</th>
    <th>5</th>
</tr>
<tr class="line-numbers">
    <td><asp:TextBox ID="txtBall1" runat="server" MaxLength="2" TabIndex="1"></asp:TextBox><asp:RequiredFieldValidator ControlToValidate="txtBall1" ID="RequiredFieldValidator1" runat="server" Display="None" ValidationGroup="AddLine" ErrorMessage="Please enter number #1"></asp:RequiredFieldValidator></td>
    <td><asp:TextBox ID="txtBall2" runat="server" MaxLength="2" TabIndex="2"></asp:TextBox><asp:RequiredFieldValidator ControlToValidate="txtBall2" ID="RequiredFieldValidator2" runat="server" Display="None" ValidationGroup="AddLine" ErrorMessage="Please enter number #2"></asp:RequiredFieldValidator></td>
    <td><asp:TextBox ID="txtBall3" runat="server" MaxLength="2" TabIndex="3"></asp:TextBox><asp:RequiredFieldValidator ControlToValidate="txtBall3" ID="RequiredFieldValidator3" runat="server" Display="None" ValidationGroup="AddLine" ErrorMessage="Please enter number #3"></asp:RequiredFieldValidator></td>
    <td><asp:TextBox ID="txtBall4" runat="server" MaxLength="2" TabIndex="4"></asp:TextBox><asp:RequiredFieldValidator ControlToValidate="txtBall4" ID="RequiredFieldValidator4" runat="server" Display="None" ValidationGroup="AddLine" ErrorMessage="Please enter number #4"></asp:RequiredFieldValidator></td>
    <td><asp:TextBox ID="txtBall5" runat="server" MaxLength="2" TabIndex="5"></asp:TextBox><asp:RequiredFieldValidator ControlToValidate="txtBall5" ID="RequiredFieldValidator5" runat="server" Display="None" ValidationGroup="AddLine" ErrorMessage="Please enter number #5"></asp:RequiredFieldValidator></td>
</tr>
</table>
<p style="float:left; width:100%;">
<asp:Button ID="ButtonAddAnotherLine" runat="server" Text="Add another line" TabIndex="7" 
        onclick="ButtonAddAnotherLine_Click" ValidationGroup="AddLine" />
<asp:Button ID="ButtonAddLine" runat="server" Text="Add line" TabIndex="8" 
        onclick="ButtonAddLine_Click" ValidationGroup="AddLine" />
        
    <asp:CustomValidator ID="CustomValidator1" runat="server" 
        ErrorMessage="DynamicMsg" ValidationGroup="AddLine" Display="None"
        onservervalidate="CustomValidator1_ServerValidate"></asp:CustomValidator>
</p>
<asp:ValidationSummary ID="ValidationSummary1" ValidationGroup="AddLine" HeaderText="Please correct following errors." runat="server" />
<asp:PlaceHolder runat="server" ID="FailurePlaceHolder" Visible="false">
<div class="results">
    <p class="red">Your changes have NOT been saved.</p>
    </div>
</asp:PlaceHolder>	
<script language="javascript">
    document.getElementById('<%= PrintFirstFieldId() %>').focus(); 
</script>		
